package com.futao.springboot.learn.api.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author futao
 * @since 2023/6/21
 */
@RestController
@RequestMapping("/path/{param}")
public class PathParamController {

    @GetMapping("/detail")
    public String detail(@PathVariable("param") String param) {
        return "echo " + param;
    }
}
